<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html charset=utf-8"/>
        <title>First page</title>
        <style type="text/css">
        *{
            font-size: 14px;
            margin: 0;
            padding: 0;
            border: 0;
            text-align: left;
            vertical-align: top;
            box-sizing: border-box;
        }
        body{
            background-color: #efefef;
        }
        #layout{
            margin: 5px auto;
            width: 900px;
            background-color: #dddddd;
        }
        #header{
            height: 110px;
            position: relative;/*absolute;fixed;relative;=>left,top*/
            background-color: darkgrey;
        }
        #workspace{
            min-height: 200px;
            padding: 10px;
        }
        #footer{
            height: 50px;
            background-color:#666666;
            color: #cccccc;
        }
        #header>#caption-info{
            height: 80px;
            padding: 8px;
        }
        #header>#caption-info>h1{
            font-size: 24px;
            color: white;
        }
        #header>#caption-info>.user-info{
            text-align: right;
        }
        #header>#main-menu{
            height: 30px;
            background-color: black;
        }
        .user-name{
            left: 10px;
            top: 86px;
            color: white;
            z-index: 10;
        }
        #main-menu{
            color: white;
        }
        #main-menu ul{
            list-style: none;
        }

        .topMenu>li{
            display: inline-block;
            width: 100px;
        }
        .topMenu>li ul{
            display: none;
            position: absolute;
            padding: 3px 0;
        }
        .topMenu li{
            position: relative;
            width: 100px;
            height: 30px;
            cursor: pointer;
            padding: 5px;
        }
        .topMenu li:hover{
            background-color: #666666;
        }
        .topMenu li:hover>ul{
            display: block;
            background-color: #333;
        }
        .topMenu>li>ul{
            left: 0;
            top: 30px;
        }
        .topMenu>li>ul ul{
            left: 100px;
            top:0;
        }

        .container{
            padding: 0;margin: 0;border: 0;
            display: table;
            width: 100%;
        }
        .container>.col-1,.container>.col-2,.container>.col-3,.container>.col-4,.container>.col-5,.container>.col-6,
        .container>.col-7,.container>.col-8,.container>.col-9,.container>.col-10,.container>.col-11,.container>.col-12
        {
            padding: 0;margin: 0;border: 0;
            display: table-cell;
        }
        .container>.col-1{
            width: 8.33333%;
        }
        .container>.col-2{
            width: 16.66666%;
        }
        .container>.col-3{
            width: 25%;
        }
        .container>.col-4{
            width: 33.33333%;
        }
        .container>.col-5{
            width: 41.66667%;
        }
        .container>.col-6{
            width: 50%;
        }
        .container>.col-7{
            width: 58.33333%;
        }
        .container>.col-8{
            width: 66.66666%;
        }
        .container>.col-9{
            width: 75%;
        }
        .container>.col-10{
            width: 83.33333%;
        }
        .container>.col-11{
            width: 91.66667%;
        }
        .container>.col-12{
            width: 100%;
        }
        </style>
    </head>
    <body>
        <div id="layout">
            <div id="header" class="container">
                <div id="caption-info" class="container">
                    <h1 class="col-9">我的博客系统</h1>
                    <div class="user-info col-3">
                        <span class="user-name">Crow All right reserved.</span>
                        <a href="">退出登录</a>
                    </div>
                </div>
                <div id="main-menu">
                    <ul class="topMenu">
                        <li><span>首页</span></li>
                        <li><span>文章</span></li>
                        <li>
                            <span>管理</span>
                            <ul>
                                <li><span>用户</span></li>
                                <li>
                                    <span>基础数据</span>
                                    <ul>
                                        <li>皮肤管理</li>
                                        <li>兴趣管理</li>
                                    </ul>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
            <div id="workspace">这是主工作区</div>
            <div id="footer"></div>
        </div>


    </body>
</html>